<!DOCTYPE html>
<html>
<head>
    <title>日志列表</title>
    <#include "/header.html">
    <link type="text/css" rel="stylesheet" href="${request.contextPath}/statics/plugins/layui/css/layui.css">
    <style>
        th {
            text-align: center;
        }

        .form-control {
            margin-left: 10px;
        }
        #upload div{
            margin: 10px auto;
        }
        #upload form{
            margin: 10px auto;
        }
        #upload div>div{
            margin-left:  225px;
            margin-top: 10px;
            margin-bottom: 30px;
        }
    </style>

</head>
<body>
<div id="rrapp" v-cloak>
    <div v-show="showList">
        <div class="grid-btn">
            <form class="form-inline">
                <div class="form-group ">
                    <input type="text"  class="col-md-1 form-control" id="startDate"
                           placeholder="请选择导入日期" readonly>

                    <select v-model="q.logStates" class="col-md-1 form-control">
                        <option value="" >请选择状态</option>
                        <option value="SUCCESS">导入成功</option>
                        <option value="FAIL">导入失败</option>
                    </select>

                    <select v-model="q.terminalType" class="col-md-1 form-control">
                        <option v-for="type in this.terminalTypes" :value="type.terminalType">{{type.terminalName}}</option>
                    </select>
                    <input type="button" class="btn btn-default form-control" @click="query"  value="查询"/>
                    <input type="button" class="btn btn-primary form-control" @click="clean" value="刷新"/>

                </div>
            </form>
        </div>
        <table id="jqGrid"></table>

        <div id="jqGridPager"></div>
    </div>


</div>


<script src="${request.contextPath}/statics/js/modules/transaction/log.js?_${.now?long}"></script>
<script src="${request.contextPath}/statics/plugins/layui/layui.js"></script>
<script>

    layui.use('laydate', function () {
        var laydate = layui.laydate;

        //常规用法
        var startDate=laydate.render({
            elem: '#startDate',
            format: 'yyyy-MM-dd',
            done:function (value,date) {
                if(value!=''){
                    date.month=date.month-1;
                    endDate.config.min=date;
                    if(endDate.value==null || endDate.value==''){
                        endDate.value=value;
                        $("#endDate").val(endDate.value);
                    }
                }
            }
        });
        var endDate=laydate.render({
            elem: '#endDate',
            format: 'yyyy-MM-dd',
            done:function (value,date) {
                if(value!=''){
                    date.month=date.month-1;
                    startDate.config.max=date;
                }
            }
        });
    });

</script>
</body>
</html>